﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="detail.aspx.vb" Inherits="customtech.detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="BuildName" HeaderText="BuildName" 
                SortExpression="BuildName" />
            <asp:BoundField DataField="CPU" HeaderText="CPU" SortExpression="CPU" />
            <asp:BoundField DataField="Motherboard" HeaderText="Motherboard" 
                SortExpression="Motherboard" />
            <asp:BoundField DataField="RAM" HeaderText="RAM" SortExpression="RAM" />
            <asp:BoundField DataField="Graphics" HeaderText="Graphics" 
                SortExpression="Graphics" />
            <asp:BoundField DataField="HardDrive" HeaderText="HardDrive" 
                SortExpression="HardDrive" />
            <asp:BoundField DataField="OS" HeaderText="OS" SortExpression="OS" />
            <asp:BoundField DataField="Power" HeaderText="Power" SortExpression="Power" />
            <asp:BoundField DataField="Case" HeaderText="Case" SortExpression="Case" />
            <asp:BoundField DataField="Audio" HeaderText="Audio" SortExpression="Audio" />
            <asp:BoundField DataField="Mouse" HeaderText="Mouse" SortExpression="Mouse" />
            <asp:BoundField DataField="Keyboard" HeaderText="Keyboard" 
                SortExpression="Keyboard" />
            <asp:BoundField DataField="Monitor" HeaderText="Monitor" 
                SortExpression="Monitor" />
            <asp:BoundField DataField="TotalCostToBuild" HeaderText="TotalCostToBuild" 
                SortExpression="TotalCostToBuild" />
            <asp:ImageField DataImageUrlField="BuildPicture">
                <ControlStyle CssClass="buildPicture" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:connstr %>" 
        ProviderName="<%$ ConnectionStrings:connstr.ProviderName %>" 
        SelectCommand="SELECT [ID], [BuildName], [CPU], [Motherboard], [RAM], [Graphics], [HardDrive], [OS], [Power], [Case], [Audio], [Mouse], [Keyboard], [Monitor], [TotalCostToBuild], [BuildPicture] FROM [Builds] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
